<? // $url_get = "http://www.inf.ufsm.br/~fcampagnolo";            ?> 
<? // $url_get = "html_teste2.html";           ?> 

<div class="row">
   <h2 class="text-info col-md-10">Refatoração</h2>

   <button class="btn btn-warning col-md-2" style="margin-top: 20px;" data-toggle="modal" data-target="#myModal">
      Configurar Refatoração
   </button>
</div>


<form method="post" action="index.php?s=refatorar">
   <div class="row">
      <div class="input-group">
         <input type="text" class="form-control" placeholder="Informe a URL desejada:" name="url" id="url">
         <div class="input-group-btn">
            <button type="submit" class="btn btn-primary">Analisar</button>
         </div>
      </div>
   </div>

   <div class="row">
      <div class="col-md-2"><label class="text-center" style="margin-top: 10px;">Escolha a refatoração:</label></div>
      <div class="col-md-1">
         <label class="radio">
            <input type="radio" name="tpRefatoracao" id="tpRefatoracao" value="HTML" checked>HTML
         </label>
      </div>
      <div class="col-md-1">
         <label class="radio">
            <input type="radio" name="tpRefatoracao" id="tpRefatoracao" value="CSS">CSS
         </label>
      </div>
   </div>


   <!-- Modal -->
   <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog">
         <div class="modal-content">
            <div class="modal-header">
               <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
               <h4 class="modal-title" id="myModalLabel">Configurar Refatoração:</h4>
            </div>

            <div class="modal-body">
               <div class="row">
                  <div class="col-md-5"><label class="radio">Escolha a versão do HTML</label></div>
                  <div class="col-md-3"><label class="radio"><input type="radio" name="vhtml" id="vhtml" value="5" checked>
                        <label class="text-purple">V4 </label><span class="glyphicon glyphicon-arrow-right"></span><label class="text-orange"> V5</label>
                     </label></div>
                  <div class="col-md-3"><label class="radio"><input type="radio" name="vhtml" id="vhtml" value="4">
                        <label class="text-purple">V4 </label><span class="glyphicon glyphicon-arrow-left"></span><label class="text-orange"> V5</label>
                     </label></div>
               </div>
            </div>

            <div class="modal-footer">
               <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
         </div>
      </div>
   </div>
</form>

<?php
//include_once './src/Class_Web_Refatoring_HTML.php';
//
//$cr = new Class_Web_Refatoring_HTML($url_get);
//$cr->start();
//echo $cr->result;
?>